-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module: execute --import
sequentially
#50474
Conversation
Review requested:
|
If one of the modules has a top level await you have to load the modules in order, but if not you could load them unordered. |
I think it's more accurate to say this has performance implications. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm -1 on this. Is it really worth preserving the order when sequential awaiting has a huge impact on performance?
You say huge, how big are we talking about? |
That's a good question that deserves a benchmark 👍 |
Yes, because the current implementation doesn’t achieve the desired effect. If the first If the user wants parallelized loading, they can put a bunch of |
I don't think it's that good of a question, it was mostly rhetorical. The change has literally no impact on folks who are not using
|
@GeoffreyBooth supplied one reason it has to be sequential. Another reason is the "loader registration use case" as outlined in #50427 (and which was how this bug was found), where if the user writes |
Co-authored-by: Jacob Smith <3012099+JakobJingleheimer@users.noreply.github.com>
Commit Queue failed- Loading data for nodejs/node/pull/50474 ✔ Done loading data for nodejs/node/pull/50474 ----------------------------------- PR info ------------------------------------ Title module: execute `--import` sequentially (#50474) ⚠ Could not retrieve the email or name of the PR author's from user's GitHub profile! Branch aduh95:--import-serial -> nodejs:main Labels process, author ready, needs-ci, commit-queue-squash Commits 2 - module: execute `--import` sequentially - Apply suggestions from code review Committers 2 - Antoine du Hamel - GitHub PR-URL: https://github.com/nodejs/node/pull/50474 Fixes: https://github.com/nodejs/node/issues/50427 Reviewed-By: Jacob Smith Reviewed-By: Michaël Zasso Reviewed-By: Moshe Atlow ------------------------------ Generated metadata ------------------------------ PR-URL: https://github.com/nodejs/node/pull/50474 Fixes: https://github.com/nodejs/node/issues/50427 Reviewed-By: Jacob Smith Reviewed-By: Michaël Zasso Reviewed-By: Moshe Atlow -------------------------------------------------------------------------------- ⚠ Commits were pushed since the last approving review: ⚠ - Apply suggestions from code review ℹ This PR was created on Mon, 30 Oct 2023 10:21:43 GMT ✔ Approvals: 3 ✔ - Jacob Smith (@JakobJingleheimer): https://github.com/nodejs/node/pull/50474#pullrequestreview-1703780454 ✔ - Michaël Zasso (@targos) (TSC): https://github.com/nodejs/node/pull/50474#pullrequestreview-1703829531 ✔ - Moshe Atlow (@MoLow) (TSC): https://github.com/nodejs/node/pull/50474#pullrequestreview-1705908328 ✔ Last GitHub CI successful ℹ Last Full PR CI on 2023-11-01T05:42:53Z: https://ci.nodejs.org/job/node-test-pull-request/55377/ - Querying data for job/node-test-pull-request/55377/ ✔ Last Jenkins CI successful -------------------------------------------------------------------------------- ✔ Aborted `git node land` session in /home/runner/work/node/node/.ncuhttps://github.com/nodejs/node/actions/runs/6718540805 |
Landed in a3e09b3 |
PR-URL: nodejs#50474 Fixes: nodejs#50427 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
PR-URL: nodejs#50474 Fixes: nodejs#50427 Reviewed-By: Jacob Smith <jacob@frende.me> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
nodejs/node#50474 로 수정된 nodejs `--import` 실행 순서 버그를 코드베이스에 반영함
Fixes: #50427